<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View user</title>
</head>
<body>

	<c:if test="${ empty viewUserDto }">
		greška
	</c:if>

	<c:if test="${ not empty viewUserDto }">
		<table>
			<tr>
				<td><label for="username">Username</label></td>
				<td>${ viewUserDto.username }</td>
			</tr>
			<tr>
				<td><label for="firstname">Firstname</label></td>
				<td>${ viewUserDto.firstname }</td>
			</tr>
			<tr>
				<td><label for="lastname">Lastname</label></td>
				<td>${ viewUserDto.lastname }</td>
			</tr>
			<tr>
				<td><label for="creationTime">Creation time:</label></td>
				<td>${ viewUserDto.creationTime }</td>
			</tr>
			<tr>
				<td><label for="modificationTime">Modification time:</label></td>
				<td>${ viewUserDto.modificationTime }</td>
			</tr>
			<tr>
				<td><label for="email">Email:</label></td>
				<td>${ viewUserDto.email }</td>
			</tr>
			<tr>
				<td><a href="${pageContext.request.contextPath}/edit">Edit</a></td>
				<td><a href="${pageContext.request.contextPath}/delete">Delete</a></td>
			</tr>
		</table>
	</c:if>

</body>
</html>